import request from '@/utils/request'

// 查询运输信息列表
export function listFreightOrder(query) {
  return request({
    url: '/business/freightOrder/list',
    method: 'get',
    params: query
  })
}

// 查询运输信息所有列表
export function listAllFreightOrder(query) {
  return request({
    url: '/business/freightOrder/listAll',
    method: 'get',
    params: query
  })
}

// 查询运输信息详细
export function getFreightOrder(id) {
  return request({
    url: '/business/freightOrder/getInfo/' + id,
    method: 'get'
  })
}

// 新增运输信息
export function addFreightOrder(data) {
  return request({
    url: '/business/freightOrder/add',
    method: 'post',
    data: data
  })
}

// 修改运输信息
export function updateFreightOrder(data) {
  return request({
    url: '/business/freightOrder/edit',
    method: 'post',
    data: data
  })
}
// 删除运输信息
export function delFreightOrder(id) {
  return request({
    url: '/business/freightOrder/remove/' + id,
    method: 'get'
  })
}

//收货
export function isPass(data) {
  return request({
    url: '/business/freightOrder/isPass',
    method: 'post',
    data: data
  })
}
